package boogui.movie;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JFrame;

import boogui.admin.S_MovieRegistryDialog;
import boogui.admin.S_ShowingRegistryDialog;
import boogui.member.S_AboutDialog;
import boogui.member.S_MemberInfoModifyDialog;
import boogui.member.S_MemberManager;
import boogui.member.S_ReservationInfoDialog;
import boogui.member.UserVO;

public class MovieActionListener implements ActionListener {// ////////////////////////////////////회원정보수정
	private JFrame p;
	private UserVO u;

	public MovieActionListener(JFrame p, UserVO u) {
		this.p = p;
		this.u = u;
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		switch (e.getActionCommand()) {
		case "rcheck":
			new S_ReservationInfoDialog(u);
			break;
		case "user":
			new S_MemberInfoModifyDialog(p, u);
			break;
		case "exit":
			System.exit(0);
			break;
		case "help":
			break;
		case "about":
			new S_AboutDialog();
			break;
		case "member":
			new S_MemberManager(p);
			break;
		case "movie":
			new S_MovieRegistryDialog();
			break;
		case "showing":
			new S_ShowingRegistryDialog();
			break;
		case "delete":
			break;
		}
	}

}
